{% extends 'users/settings/base.html' %}

{% block title %}
	账户安全
{% endblock %}

{% block edit %}
  <div class="row">
    <div class="col-sm-8 settings-content">
      <form class="form-horizontal" role="form">
        <!--防止恶意攻击-->
        {% csrf_token %}
        <!--邮箱修改-->
        <div class="form-group">
          <label class="col-sm-2 control-label">邮箱：</label>
          <div class="col-sm-9">
            {% if user.email %}
              <p class="form-control-static">{{ user.email }}</p>
            {% else %}
              <p class="form-control-static">暂无</p>
            {% endif %}
          </div>
          <div class="col-sm-1 control-label">
            <a href="{% url 'users:safety-email' request.user.id %}">修改</a>
          </div>
        </div>
        <br/>
        <!--密保修改-->
        <div class="form-group">
          <label class="col-sm-2 control-label">密保：</label>
          <div class="col-sm-9">
            {% if user.question %}
              <p class="form-control-static">{{ user.question }}</p>
            {% else %}
              <p class="form-control-static">暂无</p>
            {% endif %}
          </div>
          <div class="col-sm-1 control-label">
            <a href="{% url 'users:safety-security-question' request.user.id %}">修改</a>
          </div>
        </div>
        <hr/>
      </form>
    </div>
  </div>
{% endblock %}